<?php

define('FPDF_FONTPATH', 'font/');

# Inclui o arquivo com a classe
require('fpdf.php');

// conexão com o banco de dados
$dbHost = "127.0.0.1:3306";
$dbUser = "root";
$dbPass = "babilonia";
$dbData = "protocolo";
$conn = mysql_connect($dbHost,$dbUser,$dbPass) or die(mysql_error());
mysql_select_db($dbData,$conn) or die(mysql_error());

mysql_set_charset('utf-8');

// dados do rec selecionado no grid
$numero = $_POST['dado']);

$pdf = new FPDF();
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 12);
$pdf->Write(4, 'Olá Mundo!!');
$pdf->Output("Relatorios/relatorio.pdf","F");
echo '<iframe src="resources/pdf/Relatorios/relatorio.pdf" style="border:0" width="100%" height="100%"></iframe>';
?>